<style>
	body{
		max-width: 800px !important;
		width: 800px;
		overflow: hidden;
	}
	.ncm-container .right-layout{
		width: 800px;
		float: left;
	}


	.box{
		overflow: hidden;
		position: relative;
	}


	.box .list{
		display: block;
		padding: 15px;
		overflow: hidden;
		width: 820px;
	}

	.box .list .item{
		border : 1px solid #ddd;
		background: #fff;
		width: 180px;
		box-shadow: 1px 1px 1px #ddd;
		position: relative;
		float: left;
		margin-right: 15px;
		margin-bottom: 20px;

	}
	.box .list .item:hover{
		border-color : #f90;
		transition : border-color 0.8s;
	}

	.box .list p{
		overflow: hidden;
		display: block;
	}

	.box .list .face img{
		width: 150px;
		height: 150px;
		margin: 0 auto;
		display: block;
		cursor: pointer;
		margin-top: 15px;
	}

	.box .list .description{
		display: block;
		padding: 10px;
		padding-top: 5px;
		border-top: 1px solid #ddd;
		height: 45px;
		line-height: 15px;
		overflow: hidden;
	}
	.box .name{
		padding: 10px;
		padding-bottom: 5px;
		display: block;
	}
	.box  .pagination{
		text-align: center;
		clear: both;
		display: block;
	    /*width: 100%;*/
	}
	.box .gold{
		position: absolute;
		top: -25px;
		left: -40px;
		width: 150px;
		cursor: pointer;
	}
	.actionbtn{
		clear: both;
		text-align: center;
		padding-top: 15px;
	}
	._to_apply{
		line-height: 35px;
	    width: 100px;
	    background: rgb(91, 183, 91);
	    text-align: center;
	    color: #fff;
	    font-size: 14px;
	    text-decoration: none;
	    display: inline-block;
	    *display: inline;
	    margin-right: 15px;
	}
	._back{
	    line-height: 35px;
	    width: 100px;
	    background: #DA4F49;
	    text-align: center;
	    color: #fff;
	    font-size: 14px;
	    text-decoration: none;
	    display: inline-block;
	    *display: inline;
	}
	.actionbtn a:hover{
		color: #fff;
		text-decoration: none !important;
	}
	._to_apply:hover{
		background: rgba(91,183,91,.8);
	}
	._back:hover{
		background: #BD362F;
	}
</style>
<div class='box'>
	<?php
		$m = Model('proxy');
		$user = Model('member');
		$list = $m->getList(array(),4);
	?>
	<div style='clear: both;'></div>
	
	<style>
		.applylist{
			/*display: none;*/
			padding: 40px 100px;
			position: relative;
		}
		.applylist dt{
			font-weight: bold;
			font-size: 15px;
			line-height: 30px;
		}
		.applylist dd{
			padding-bottom: 15px;

		}
		.applylist input{
			width: 350px;
		}
		.applylist textarea{
			height: 280px;
		}
		.applylist .face{
			position: absolute;
			right : 104px;
			top : 40px;
		}	

		input,textarea{
			font-family: 'Mircosoft Yahei' !important;
		}

		.save_apply{
			line-height: 35px;
		    width: 100px;
		    background: rgb(255, 102, 0);
		    text-align: center;
		    color: #fff;
		    font-size: 14px;
		    text-decoration: none;
		    display: inline-block;
		    *display: inline;
		    margin-top: 15px;
		    /*margin-right: 15px;*/
		}
		.save_apply:hover{
			text-decoration: none;
			color: #fff;
			background: rgba(255,102,0,.8);
		}

		textarea{
			resize:none;
		}

	</style>
	<div class='applylist'>

		<?php
			$model = Model();
			$info = $model->table('proxy_apply')->where(array(
				'id' => $_REQUEST['id'],
				'proxy_member_id' => $_SESSION['member_id']
			))->find();
			if(!$info){
				exit;
			}
			$me = $user->find($info['member_id']);
		?>
		<dl>
			<dt>用户名</dt>
			<dd>
				<input type="text" class="username" readonly="true" disabled value="<?php echo $me[member_name]?>" >
				
			</dd>
		</dl>

		<dl>
			<dt>
				联系方式
			</dt>
			<dd>
				<input type="text" class="contact" disabled value='<?php echo $info[contact]?>' placeholder="请输入您的联系方式">
			</dd>
		</dl>

		<dl>
			<dt>
				留言
			</dt>
			<dd>
				<textarea rows='50' class='msg' cols='95' disabled><?php echo $info[msg];?></textarea>
			</dd>
		</dl>

		<dl>
			<dd style='text-align: center;'>
				<a href="javascript:;" class='save_apply cancel_apply'>关闭</a>
			</dd>
		</dl>

		<script>
			if(!String.prototype.trim){
				String.prototype.trim = function(){
					return $.trim(this);
				}
			}
			$('.cancel_apply').click(function(event) {
				parent.layer.closeAll();
			});
			
		</script>

		<div class="face">
			<?php
				if(empty($me['avatar'])){
					$face = '/data/upload/shop/common/default_user_portrait.gif';
				}
				else{
					$face = '/data/upload/shop/avatar/' . $me['avatar'];
				}
			?>
			<img src="<?php echo $face;?>" width='150' height='150' alt="">
		</div>
	</div>
</div>
